<!-- $Id: detailsMessage.html 96 2011-04-11 00:41:26Z nicholasinlove1986@gmail.com $ -->
<load href="__PUBLIC__/Js/validator.js" />
<style type="text/css">
img.wp-smiley-select {cursor: pointer;}
</style>
<script type="text/javascript">
/**
* 评论表情
*/
function grin(tag) {
	if (typeof tinyMCE != 'undefined') {
		grin_tinymcecomments(tag);
	} else {
		grin_plain(tag);
	}
}
function grin_tinymcecomments(tag) {
	tinyMCE.execCommand('mceInsertContent', false, ' ' + tag + ' ');
}

function grin_plain(tag) {
	var myField;
	var myCommentTextarea = "comment";
	tag = ' ' + tag + ' ';
	if (document.getElementById(myCommentTextarea) && document.getElementById(myCommentTextarea).type == 'textarea') {
		myField = document.getElementById(myCommentTextarea);
	} else {
		return false;
	}
	if (document.selection) {
		myField.focus();
		sel = document.selection.createRange();
		sel.text = tag;
		myField.focus();
	}
	else if (myField.selectionStart || myField.selectionStart == '0') {
		var startPos = myField.selectionStart;
		var endPos = myField.selectionEnd;
		var cursorPos = endPos;
		myField.value = myField.value.substring(0, startPos)
					  + tag
					  + myField.value.substring(endPos, myField.value.length);
		cursorPos += tag.length;
		myField.focus();
		myField.selectionStart = cursorPos;
		myField.selectionEnd = cursorPos;
	}
	else {
		myField.value += tag;
		myField.focus();
	}
}

/**
* 检查表单输入的数据
*/
function validate() {
	validator = new Validator("theForm");	
	validator.required("comment_recontent","{$Think.lang.js_msg_reply}");;
	return validator.passed();
}
</script>
<include file="Public:pageheader"/>
<!-- guestbook content list -->
<div class="main-div">
  <table width="100%">
    <tr>
      <td align="left">
	  <present name='prev_msg_id'>
	  <input type="button" onclick="location.href='__URL__/detailsMessage/id/{$prev_msg_id}'" value="{$Think.lang.prev_msg}" class="button" />
	  </present>
	  </td>
	  <td align="right">
	  <present name='next_msg_id'>
	  <input type="button" onclick="location.href='__URL__/detailsMessage/id/{$next_msg_id}'" value="{$Think.lang.next_msg}" class="button" />
	  </present>
	  </td>
    </tr>
  </table>
</div>
<div class="main-div">
  <table width="100%">
    <tr>
	<td>
     <a href="{$vo.comment_url}" target="_blank"><b>{$vo.comment_author}</b></a>&nbsp;&nbsp;&nbsp;{$Think.lang.from}&nbsp;&nbsp;&nbsp;{$vo.comment_addtime|date='Y-m-d H:i:s',###}&nbsp;&nbsp;&nbsp;{$Think.lang.send_msg}&nbsp;<b>{$vo.comment_replaynum|default='0'}</b>&nbsp;{$Think.lang.comment_times}.</td>
    </tr>
    <tr>
      <td><hr color="#dadada" size="1"></td>
    </tr>
    <tr>
      <td>
        <div style="overflow:hidden; word-break:break-all; padding:5px;">{$vo.comment_content}</div>
        <div align="right"><b>Email</b>: {$vo.comment_email|default='N/A'}<br /><b>ip</b>: {$vo.comment_ip}</div>
      </td>
    </tr>
	<tr>
      <td><hr color="#dadada" size="1"></td>
    </tr>
    <tr>
      <td align="center">
	  <eq name='vo.comment_visible' value='0'>
      <input type="button" onclick="location.href='__URL__/quickToggle/act/visible/v/1/id/{$vo.comment_id}'" value="{$Think.lang.msg_visible}" class="button" />
	  <else />		
	  <input type="button" onclick="location.href='__URL__/quickToggle/act/visible/v/0/id/{$vo.comment_id}'" value="{$Think.lang.msg_un_visible}" class="button" />
	  </eq>
	  <eq name='vo.comment_approved' value='0'>
      <input type="button" onclick="location.href='__URL__/quickToggle/act/approved/v/1/id/{$vo.comment_id}'" value="{$Think.lang.msg_approved}" class="button" />
	  <else />		
	  <input type="button" onclick="location.href='__URL__/quickToggle/act/approved/v/0/id/{$vo.comment_id}'" value="{$Think.lang.msg_un_approved}" class="button" />
	  </eq>
            </td>
    </tr>
  </table>
</div>
<!-- reply content list -->
<present name="vo.comment_recontent">
<div class="main-div">
  <table width="100%">
    <tr>
      <td>
      <b>{$vo.comment_reauthor}</b>&nbsp;&nbsp;&nbsp;{$Think.lang.from}&nbsp;&nbsp;&nbsp;{$vo.comment_retime|date='Y-m-d H:i:s',###}&nbsp;&nbsp;&nbsp;{$Think.lang.msg_reply}</td>
    </tr>
    <tr>
      <td><hr color="#dadada" size="1"></td>
    </tr>
    <tr>
      <td>
        <div style="overflow:hidden; word-break:break-all; padding:5px;">{$vo.comment_recontent}</div>
      </td>
    </tr>
  </table>
</div>
</present>
<div style="background: #F4FAFB;border: 1px solid #BBDDE5;padding:10px;">
<form method="post" action="__URL__/replayMessage" name="theForm" onsubmit="return validate()">
<table border="0" align="center">
  <tr><th colspan="2">
  <strong>{$Think.lang.reply_msg}</strong>
  </th></tr>
  <tr>
    <td>{$Think.lang.msg_reauthor}:</td>
    <td><select name="comment_reauthor">
            {$nick_name}
            </select></td>
  </tr>
  <tr>
    <td>{$Think.lang.reply_content}:</td>
    <td><textarea name="comment_recontent" id="comment" cols="50" rows="4" wrap="VIRTUAL"></textarea></td>
  </tr>
  <present name="vo.comment_recontent">
  <tr>
    <td>&nbsp;</td>
    <td>{$Think.lang.have_reply_content}</td>
  </tr>
  </present>
      <tr>
    <td>&nbsp;</td>
    <td align="center">
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_wink.gif' alt=':wink:' onclick='grin(":wink:")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_neutral.gif' alt=':-|' onclick='grin(":-|")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_mad.gif' alt=':-x' onclick='grin(":-x")' class='wp-smiley-select' /> 
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_twisted.gif' alt=':twisted:' onclick='grin(":twisted:")' class='wp-smiley-select' /> 
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_smile.gif' alt=':)' onclick='grin(":)")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_eek.gif' alt='8-O' onclick='grin("8-O")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_sad.gif' alt=':(' onclick='grin(":(")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_rolleyes.gif' alt=':roll:' onclick='grin(":roll:")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_razz.gif' alt=':-P' onclick='grin(":-P")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_redface.gif' alt=':oops:' onclick='grin(":oops:")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_surprised.gif' alt=':-o' onclick='grin(":-o")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_mrgreen.gif' alt=':mrgreen:' onclick='grin(":mrgreen:")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_lol.gif' alt=':lol:' onclick='grin(":lol:")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_idea.gif' alt=':idea:' onclick='grin(":idea:")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_biggrin.gif' alt=':-D' onclick='grin(":-D")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_evil.gif' alt=':evil:' onclick='grin(":evil:")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_cry.gif' alt=':cry:' onclick='grin(":cry:")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_cool.gif' alt='8)' onclick='grin("8)")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_arrow.gif' alt=':arrow:' onclick='grin(":arrow:")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_confused.gif' alt=':-?' onclick='grin(":-?")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_question.gif' alt=':?:' onclick='grin(":?:")' class='wp-smiley-select' />
<img src='__PUBLIC__/Plugins/emoticons/smilies/icon_exclaim.gif' alt=':!:' onclick='grin(":!:")' class='wp-smiley-select' />
    </td>
  </tr>
    <tr>
    <td>&nbsp;</td>
    <td align="center">
      <input name="submit" type="submit" value=" {$Think.lang.submit} " class="button">
      <input type="reset" value=" {$Think.lang.reset} " class="button">
      <input type="hidden" name="comment_id" value="{$vo.comment_id}">
      <input type="hidden" name="act" value="do">
    </td>
  </tr>
</table>
</form>
</div>
<include file="Public:pagefooter"/>
